function direction=getDirection(R)

direction=[];
for i=1:2*R+1
    for j=1:2*R+1
        x=i-R-1;
        y=j-R-1;
        if ~(x==0 && y==0 )
            direction=[direction;x,y];
        end 
    end
end
end
